package com.tyj.movie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.movie.to.MovieTo;
import com.tyj.movie.entity.Movie;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
public interface MovieServer extends IService<Movie> {

    boolean addMovie(MovieTo movieTo) throws ExecutionException, InterruptedException;

    IPage<Movie> moviePagingQuery(Long pageNum, String movieName);

    void enable(Long id);

    void disable(Long id);
}
